/**
 * FileName: Role
 * Author: TangZaoBang
 * Date: 2023/05/09 10:47
 * Description:
 * <p>
 * History:
 * <author> TangZaoBang
 * <time> 2023/05/09 10:47
 * <version> 1.0.0
 * <desc> 版本描述
 */

package com.bosssoft.hr.train.j2se.mybatis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @Class Role
 * @Description
 * @Author TangZaoBang
 * @Date 2023/05/09 10:47
 * @Version
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

@Table(name = "basic_role")
public class Role implements Serializable {

    @Id
    private Long id;


    private String name;


    private String code;


    private String remark;


    private Long tenantId;


    private Long orgId;


    private Long companyId;


    private Long createdBy;

    private String creator;

    
    private Date createdTime;


    private Long updatedBy;

   
    private String modifier;

   
    private Date updatedTime;


    private Byte status;


    private Long version;
    /**
     * 角色对应的资源列表
     */
    private List<Resource> resources;
}
